.ShaChatBox {
    position: fixed;
    bottom: 0em;
    right: 0em;

    z-index: 80;
    user-select: none;
    max-height: calc(100% - 10em);

    height: 40em;
    width: 80em;
}
.ShaChatBox p {
    font-family: GostBStandard;
    font-size: 1.8em;
    margin: 0em 0em;
}


.ShaChatBox .window {
    width: 100%;
    height: 100%;
    background-color: #609ec594;

    position: absolute;
    left: 0px;
    top: 0px;

    overflow: hidden;
}
.ShaChatBox .caption {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;

    height: 2em;

    background: #3A7BA4;
    background: -moz-linear-gradient(top, #6b9cbb 0%, #4d88ad 66%, #3A7BA4 100%);
    background: -webkit-linear-gradient(top, #6b9cbb 0%, #4d88ad 66%, #3A7BA4 100%);
    background: linear-gradient(to bottom, #6b9cbb 0%, #4d88ad 66%, #3A7BA4 100%);
}
.ShaChatBox .inner {
    position: absolute;
    top: 2em;
    left: 0em;
    right: 0em;
    bottom: 0em;

    display: flex;
}

.leftside {
    flex: 50%;
    position: relative;
}

.ShaChatBox .window {
    min-height: 10em;
}

.ShaChatBox .replybox {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 4em;


}
.ShaChatBox .replybox textarea {
    width: 100%;
    height: 100%;


    background: #ffffffad;
    border: none;
    overflow: auto;
    outline: none;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    resize: none;
}

.ShaChatBox .replybox textarea:focus {
    background: #fff;
    border: none;
}
.ShaChatBox .MessagesContainer {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 4em;

    overflow: scroll;
}

.ShaChatBox .MessageContainer {
    position: relative;
    margin: 2em 1em;

    overflow-x: hidden;
    /*float: right;*/
}


.ShaChatBox .MessageContainer .Message {
    background-color: white;
    border-radius: 0.3em;

    width: 90%;
    position: relative;

    float: right;
}
.ShaChatBox .mine .Message {
    float: left;
    background: #dcf1ff;
}

.ShaChatBox .Message p {
    padding: 0px;
    margin: 0px;
}

.ShaChatBox .Message .time {
    position: absolute;
    right: 0.5em;
    bottom: 0.5em;

    font-size: 1em;

}
.ShaChatBox .Message .sender {
    position: absolute;
    left: 5em;
    top: 0.5em;
    font-weight: bold;
    font-size: 1em;

    color: #3b7396;
}

.ShaChatBox .Message .text {
    margin: 0em 0em 0em 2.2em;
    padding: 0.8em 1.6em 0em 0em;
    min-height: 1em;
}

.iScroll::-webkit-scrollbar{
    width: 3px;
    height: 3px;
}
.iScroll::-webkit-scrollbar-thumb{
    background: #B3AFB3;
    border: 0.4px inset #C2C2C2;
    border-radius: 0px;
}
.iScroll::-webkit-scrollbar-thumb:hover{
    background: #B3AFB3;
}
.iScroll::-webkit-scrollbar-track{
    background: #F0F0F0;
    border-radius: 0px;
    box-shadow: inset 0px 0px 0px 0px #F0F0F0;
}

.ContactsContainer {

}

.Contact {
    width: 15em;
    height: 3.2em;
    display: block;
    background: white;

    position: relative;
    border-bottom: 1px solid #bfbfbf;
}
.ContactsContainer .selected {
    background: #6b9cbb !important;
}
.Contact .time {
    position: absolute;
    right: 0.3em;
    bottom: 0.3em;
    font-size: 1em;
}
.Contact .name {
    position: absolute;
    left: 2em;
    top: 0.3em;
    right: 0.5em;

    word-wrap: break-word;
    white-space: nowrap;

    font-size: 1.5em;


    overflow: hidden;
}

@media (hover:none), (hover:on-demand) {
    /* custom css for "touch targets" */
    .ShaChatBox {
        font-size: 0.5em;
        width: 100%;
        height: 50%;
    }
}